]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-drawing-area: Avoid unnecessary repaints
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 15 Oct 2010 07:18:37 +0000 (09:18 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 15 Oct 2010 10:31:34 +0000 (12:31 +0200)
StDrawingArea uses the member variable needs_repaint to keep track
of whether it needs repainting. The variable is set to TRUE correctly,
e.g. on allocation or style changes - alas, it is never set to FALSE,
resulting in the area being repainted continuously.

https://bugzilla.gnome.org/show_bug.cgi?id=632197

src/st/st-drawing-area.c

index fa99d11e655dfef4b0f61a0a60f7cdae5c42262d..a10da15db62e7578defead77ef9ad838366b71ce 100644 (file)
@@ -115,6 +115,7 @@ st_drawing_area_paint (ClutterActor *self)
           surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
           priv->context = cairo_create (surface);
           priv->in_repaint = TRUE;
+          priv->needs_repaint = FALSE;
 
           g_signal_emit ((GObject*)area, st_drawing_area_signals[REPAINT], 0);